package com.cloudpan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudpan.entity.bo.SysFindFriendBo;
import com.cloudpan.entity.bo.SysUserChangePwdBo;
import com.cloudpan.entity.bo.SysUserInfoBo;
import com.cloudpan.entity.bo.SysUserPasswordLoginBo;
import com.cloudpan.entity.param.InitTaskParam;
import com.cloudpan.entity.pojo.SysUserInfo;
import com.cloudpan.entity.vo.SysFriendVo;
import com.cloudpan.entity.vo.SysUserInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author Code Generator
 * @since 2023-10-28
 */
public interface SysUserInfoMapper extends BaseMapper<SysUserInfo> {

    SysUserInfo selectByCodition(SysUserInfoBo query);

    SysUserInfoVo selectByPhone(String phone);

    SysUserInfo login(@Param("query") SysUserPasswordLoginBo condition);

    Boolean updatePwd(@Param("dto") SysUserChangePwdBo pwdDto);

    List<SysFriendVo> findList(@Param("query") SysFindFriendBo friendDto);

    SysUserInfo getByFriendInfo(String friendId);

    void useTotalSpace(@Param("condition") InitTaskParam param);
}
